package controllers

import (
	"github.com/astaxie/beego"
	//"fmt"
    "beego/testApp/common/exam"
	//"beego/testApp/common/class"
	
	"beego/testApp/common/tool"
	//"time"
)

type GetExamByCidController struct {
	beego.Controller
}




func (c *GetExamByCidController) Get() {

	cid,_ := c.GetInt("cid")
	examobj := exam.Exam{Cid:cid}

	examlist :=examobj.ExamListByCid()

	tool.Pic("get exam list by cid",examlist)
	
    c.Data["elist"]  = examlist
	c.TplName = "examlistbycid.html"

}
